<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<%@ include file="/common/dxp/include/common-base.jsp" %>
	<title>服务/接口测试</title>
	<!-- Tell the browser to be responsive to screen width -->
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
</head>

<!-- Part 一、 以下是body主体内容的模块区域 -->
<body class="hold-transition ${sysColor} sidebar-mini">
<div class="wrapper">

	<!-- top start -->
	<%@include file="/common/dxp/top.jsp" %>
	<!-- top end -->
	<!-- left start -->
	<%@include file="/common/dxp/left.jsp" %>
	<!-- left end-->

	<div class="content-wrapper">
		<!-- Main start -->
		<section class="content">
			<div id="div_hidden_content" class="hidden" style="display:none;">
				<input name="templateType" type="hidden" value="all"/>
				<div id="hidden_common_final">
					<!-- temp="hidden_common_final" start -->
					<input name="mainObjName" type="hidden" value="dxSysIntRelation">
					<input name="mainObjPrimaryKey" type="hidden" value="infoId">
					<input name="objNameAll" type="hidden" value="dxSysIntRelation">
					<!-- temp="hidden_common_final" end -->
				</div>
				<!-- temp="delForm_hidden" start -->
				<div id="delForm_hidden" style="display:none;">
					<input type="hidden" name="pageName" value="dx-sys-int-relation"/>
					<input type="hidden" name="formName" value="delForm"/>
				</div>
				<!-- temp="delForm_hidden" end -->
				<div class="form-group"><select
						id="initForm1_dxInterfaceReg_interfaceProtocol"
						class="form-control  clean"
						data-dict-cate="dataExchangeProtocol" data-dict-code="dictItemList" data-dict="dataExchangeProtocol" data-type-tag="select"
						data-def=""
						placeholder="必填项"
						data-bv-notempty="true"
						data-bv-notempty-message="不能为空">
					<option value="">--请选择--</option>
				</select></div>
				<div class="form-group"><select
						id="initForm1_dxInterfaceReg_exchangeMode"
						class="form-control  clean"
						data-temp-obj="dxInterfaceReg.exchangeMode"
						data-dict-code="dictItemList"
						data-dict-cate="dataEM" data-type-tag="select"
						>
					<option value="">--请选择--</option>
				</select></div>
				<div class="form-group"><select
						id="initForm_dxInterfaceReg_interfaceType"
						class="form-control  clean"
						data-temp-obj="dxInterfaceReg.interfaceType"
						data-dict-code="dictItemList" data-dict-cate="sysType"
						data-type-tag="select" data-def="">
					<option value="">--请选择--</option>
				</select></div>
				<div class="form-group"><select
						id="initForm1_dxInterfaceReg_reqMsgFormatType"
						class="form-control  clean"
						data-temp-obj="dxInterfaceReg.reqMsgFormatType"
						data-dict-code="dictItemList"
						data-dict-cate="msgFormat" data-type-tag="select"
						data-def="" placeholder="必填项"
						data-bv-notempty="true"
						data-bv-notempty-message="不能为空">
					<option value="">--请选择--</option>
				</select></div>
			</div>
			<div class="row">
				<div class="col-xs-12">

					<!------搜索  start ------->
					<div class="box box-info">
						<!--搜索title  start -->
						<div class="box-header with-border">
							<h3 class="box-title"><i class="fa fa-search"></i> 服务/接口搜索</h3>
							<div class="box-tools pull-right">
								<button type="button" class="btn btn-box-tool" data-widget="collapse"><i
										class="fa fa-minus"></i></button>
							</div>
						</div>
						<!--搜索title  end -->
						<div class="box-body">
							<form id="searchForm" action="javascript:;">
								<!-- temp="searchForm_hidden" start -->
								<div id="searchForm_hidden" style="display:none;">
									<input type="hidden" name="pageName" value="dx-sys-int-relation-search"/>
									<input type="hidden" name="formName" value="searchForm"/>
									<input type="hidden" name="orderBy" value="dxSysIntRelation.create_time desc"/>
								</div>
								<!-- temp="searchForm_hidden" end -->

								<!-- temp="searchForm_content" start -->
								<div id="searchForm_content" class="form-group" data-temp-code="true"
									 data-temp-type="searchForm" data-temp-form-id="searchForm">


									<table class="table table-bordered bordercolor">
										<tbody>
										<tr>
											<td class="active" align="right"><label
													class="form-control-static">服务/接口编号：</label></td>
											<td>
												<div class="form-group"><input name="dxSysIntRelation.wl_fromInterfaceCode"
																			   class="form-control clean" maxlength="30">
												</div>
											</td>
											<td class="active" align="right"><label
													class="form-control-static">服务/接口名称：</label></td>
											<td>
												<div class="form-group"><input name="dxSysIntRelation.wl_fromInterfaceName"
																			   class="form-control clean" maxlength="50">
												</div>
											</td>
										</tr>
										<tr>
<%--											<td class="active w150" align="right"><label--%>
<%--													class="form-control-static">使用单位：</label></td>--%>
<%--											<td>--%>
<%--												<div class="form-group">--%>
<%--                                                    <select id="searchForm_dxSysIntRelation_applyCompany" name="dxSysIntRelation.wl_applyCompany" class="form-control  clean"--%>
<%--                                                            data-temp-obj="dxSysIntRelation.applyCompany" data-dict-code="dictItemList" data-dict-cate="dxpUnit" data-type-tag="select" data-def=""--%>
<%--                                                            placeholder="必填项" data-bv-notempty="true" data-bv-notempty-message="不能为空">--%>
<%--                                                        <option value="">-请选择--</option>--%>
<%--                                                    </select>--%>
<%--												</div>--%>
<%--											</td>--%>
											<td class="active" align="right"><label
													class="form-control-static">使用系统：</label></td>
											<td>
												<div class="form-group">
													<select id="searchForm_dxSysReg_applySysEname"
															class="form-control  clean"
															data-obj-name="dxSysReg"  name="dxSysIntRelation.w_applySysEname"
															data-type-tag="select" data-dict-code="dymicSql"
															data-colmun="{value:'sysEname',text:'sysCname'}"
															data-page-name="dx-sys-reg"  data-dict-map-key="syslist"
															data-form-name="searchForm" data-condition=""
															data-def="" data-dict-cate="">
														<option value="">--请选择--</option>
													</select>
												</div>
											</td>
											<td class="active" align="right"><label
													class="form-control-static">提供系统：</label></td>
											<td>
												<div class="form-group">
													<select id="searchForm_dxSysReg_sysEname"
															class="form-control  clean"
															data-obj-name="dxSysReg"  name="dxSysIntRelation.w_sysEname"
															data-type-tag="select" data-dict-code="dymicSql"
															data-colmun="{value:'sysEname',text:'sysCname'}"
															data-page-name="dx-sys-reg"
															data-form-name="searchForm" data-condition=""
															data-def="" data-dict-cate="">
														<option value="">--请选择--</option>
													</select>
												</div>
											</td>
										</tr>
										</tbody>
									</table>
								</div>
								<!-- temp="searchForm_content" end -->
							</form>
							<div class="box-footer text-center">
								<button type="button" class="btn btn-success" onclick="getTableData();"
										data-temp-event="searchForm_hidden"><i class="fa fa-search"></i> 查询
								</button>
								 
								<button type="button" class="btn btn-warning"
										onclick="mytools.cleanData('#searchForm');">重置
								</button>
							</div>
						</div>
					</div>
					<!------- 搜索 end -------->

					<!------- 列表 start -------->
					<div class="box box-success">
						<!--列表title  start -->
						<div class="box-header with-border">
							<h3 class="box-title"><i class="fa fa-table"></i> 查询结果 [共计<span id="dataListTotalCount">0</span>条数据]
								　　　
<%--								<button id="button_to_add" onclick="toAdd();" class="btn btn-success" type="button"><i--%>
<%--										class="fa fa-plus-circle"></i> 增加--%>
<%--								</button>--%>
							</h3>
							<div class="box-tools pull-right">
								<button type="button" class="btn btn-box-tool" data-widget="collapse"><i
										class="fa fa-minus"></i></button>
							</div>
						</div>
						<div class="box-body">
							<table id="dataList" class="table table-bordered table-hover">
								<thead>
								<tr id="dataList_thead_content" data-temp-code="true" data-temp-type="table"
									data-temp-show="dataList_template_content">
									<th>序号</th>
									<!-- temp="dataList_thead_content" start -->

									<th>使用系统</th>
									<th data-temp-obj="dxSysIntRelation.fromInterfaceCode">服务/接口编号</th>
									<th data-temp-obj="dxSysIntRelation.fromInterfaceName">服务/接口名称</th>
									<th>提供系统</th>
									<th data-temp-obj="dxSysIntRelation.requestUrl">接口发布的请求地址</th>
									<th>开启挡板</th>
									<th>操作</th>
									<!-- temp="dataList_thead_content" end -->
								</tr>
								</thead>
								<tbody id="dataList-body">

								</tbody>
							</table>
						</div>

						<div class="box-footer text-center">
							<ul id="dataList-page" class="pagination">
							</ul>
						</div>
					</div>
					<!------- 列表 end -------->
				</div>
			</div>
			<div win-title="设置挡板窗口" class="modal fade" id="my_modal_set_test" tabindex="-1" role="dialog"
				 aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog" style="width:60%;">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
								×
							</button>
							<h4 class="modal-title">
								<font color="red">设置挡板</font> 
							</h4>
						</div>
						<div class="modal-body">
							<div class="nav-tabs-custom">
								<ul class="nav nav-tabs" id="myTab-set-test">
								</ul>

								<!-- tab content start -->
								<div class="tab-content">

									<div class="tab-pane active" id="tabSetTest_1">
										<form class="form-horizontal editFormBody" role="form" id="setTestForm1"
											  action="javascript:void(0)">
											<input type="hidden" class="formToken" id="setTestForm1_formToken"
												   name="formToken"/>
											<!-- temp="setTestForm1_hidden" start -->
											<div id="setTestForm1_hidden">
												<input type="hidden" name="pageName" value="dx-interface-reg"/>
												<input type="hidden" name="formName" value="editForm"/>
												<input type="hidden" name="dxInterfaceReg.w_infoId"
													   data-name="dxInterfaceReg.infoId"
													   class="dxInterfaceReg_infoId clean">
											</div>
											<!-- temp="setTestForm1_hidden" end -->

											<!-- temp="setTestForm1_content" start -->
											<div id="setTestForm1_content">


												<table class="table table-bordered bordercolor">
													<tbody>
													<%--<tr>
														<td class="active" align="right"><label
																class="form-control-static">是否开启挡板：</label></td>
														<td>
															<div class="form-group">
																<div class="form-control-static"
																	 id="setTestForm1_dxInterfaceReg_ifTest"
																	 name="dxInterfaceReg.ifTest"
																	 data-temp-obj="dxInterfaceReg.ifTest"
																	 data-dict-code="dictItemList"
																	 data-dict-cate="enabled" data-colmun=""
																	 data-condition="" data-type-tag="radio"
																	 data-def="0">[radio]
																</div>
															</div>
														</td>
													</tr>--%>
													<tr>
														<td class="active w120" align="right"><label
																class="form-control-static">挡板数据：</label></td>
														<td>
															<div class="form-group">
																<textarea name="dxInterfaceReg.dataTest" data-name="dxInterfaceReg.dataTest" class="form-control clean" rows="3"></textarea>
															</div>
														</td>
													</tr>
													</tbody>
												</table>

											</div>
											<!-- temp="setTestForm1_content" end -->

											<div class="form-group">
												<div class="col-sm-12">
													<div class="box-footer text-center">
														<button class="btn btn-success pull-left" type="button"
																onclick="mytools.closeModal('my_modal_set_test');"> 取消
														</button>
														<button class="btn btn-danger pull-right" type="button"
																onclick="submitForm1('setTestForm1','');"
																data-temp-event="setTestForm1_hidden"> 提 交
														</button>
													</div>
												</div>
											</div>
										</form>
									</div>

								</div>
								<!-- tab content e -->
							</div>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>

			<div win-title="查看窗口" class="modal fade" id="my_modal_view" tabindex="-2" role="dialog"
				 aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog" style="width:90%;">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
								×
							</button>
							<h4 class="modal-title">
								<font color="red">查看详情</font> 
							</h4>
						</div>
						<div class="modal-body viewForm">

							<div class="nav-tabs-custom">
								<ul class="nav nav-tabs" id="myTab-view">
								</ul>

								<!-- tab content start -->
								<div class="tab-content user-box mytab2">

									<div class="tab-pane active" id="tabView_1">
										<form class="form-horizontal" role="form" id="viewForm1"
											  action="javascript:void(0)">

											<!-- temp="viewForm1_content" start -->
											<div id="viewForm1_content" class="row viewForm">


												<table class="table table-bordered bordercolor">
													<tbody>
													<tr>
														<td class="active w150" align="right"><label
																class="form-control-static">服务/接口使用单位：</label></td>
														<td class="w200">
															<div class="form-control-static">
																  <span id="viewForm1_dxSysIntRelation_applyCompany"
																		data-dict-cate="dxpUnit"
																		data-dict-code="dictItemList"
																		data-type-tag="select" data-name="dxSysIntRelation.applyCompany"
																		data-dict="dxpUnit"></span>
<%--                                                                <span id="viewForm1_dxSysIntRelation_applyCompany"--%>
<%--																	  data-dict-cate="" data-dict-code="dymicSql"--%>
<%--																	  data-type-tag="select" data-page-name="dx-sys-reg"--%>
<%--																	  data-form-name="searchForm"--%>
<%--																	  data-obj-name="dxSysReg" data-condition=""--%>
<%--																	  data-name="dxSysIntRelation.applyCompany"--%>
<%--																	  data-colmun="{value:'userOwner',text:'userOwner'}"></span>--%>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口使用系统：</label></td>
														<td class="w200">
															<div class="form-control-static">
                                                                <span id="viewForm1_dxSysIntRelation_applySysEname"
																	  data-dict-cate="" data-dict-code="dymicSql"
																	  data-type-tag="select" data-page-name="dx-sys-reg"
																	  data-form-name="searchForm"
																	  data-obj-name="dxSysReg" data-condition=""
																	  data-name="dxSysIntRelation.applySysEname"
																	  data-colmun="{value:'sysEname',text:'sysCname'}"></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口所属系统：</label></td>
														<td class="w200">
															<div class="form-control-static">
                                                                <span id="viewForm1_dxSysIntRelation_sysEname"
																	  data-dict-cate="" data-dict-code="dymicSql"
																	  data-type-tag="select" data-page-name="dx-sys-reg"
																	  data-form-name="searchForm"
																	  data-obj-name="dxSysReg" data-condition=""
																	  data-name="dxSysIntRelation.sysEname"
																	  data-colmun="{value:'sysEname',text:'sysCname'}"></span>
															</div>
														</td>
													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口编号：</label></td>
														<td>
															<div class="form-control-static"><span
																	data-name="dxSysIntRelation.fromInterfaceCode"
																	></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口名称：</label></td>
														<td>
															<div class="form-control-static"><span
																	data-name="dxSysIntRelation.fromInterfaceName"
																	></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口方向：</label></td>
														<td class="show_viewForm1_dxInterfaceReg">
															<div class="form-control-static"><span
																	id="viewForm1_dxInterfaceReg_exchangeMode"
																	data-dict-cate="dataEM"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.exchangeMode"
																	data-dict="dataEM"></span>
															</div>
														</td>

													</tr>
													<tr class="show_viewForm1_dxInterfaceReg">
														<td class="active" align="right"><label
																class="form-control-static">服务/接口协议：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="viewForm1_dxInterfaceReg_interfaceProtocol"
																	data-dict-cate="dataExchangeProtocol" data-dict-code="dictItemList" data-dict="dataExchangeProtocol" data-type-tag="select"
																	data-name="dxInterfaceReg.interfaceProtocol" ></span></div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">请求报文格式类型：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="viewForm1_dxInterfaceReg_reqMsgFormatType"
																	data-dict-cate="msgFormat"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.reqMsgFormatType"
																	data-dict="msgFormat"></span></div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口类型：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="viewForm1_dxInterfaceReg_interfaceType"
																	data-dict-cate="sysType"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.interfaceType"
																	data-dict="sysType"></span></div>
														</td>

													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">客户端接入信息：</label></td>
														<td colspan="5">
															<div class="form-control-static">
																<span class="">接入标识(AppId)：<span data-name="dxSysIntRelation.toServerId"></span></span>
																<span class="ml15">请求公钥(AppKey)：<span  data-name="dxSysIntRelation.toInterfaceCode"></span></span>
																<span class="ml15">其他秘钥：<span  data-name="dxSysIntRelation.requestPwd"></span></span>
															</div>
														</td>
													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">接口发布的请求地址：</label></td>
														<td colspan="5">
															<div class="form-control-static red">
																[ POST ] &nbsp; <span id="view_api_request_url" data-name="dxSysIntRelation.requestUrl" ></span>
															</div>
														</td>
													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">Param参数：</label></td>
														<td colspan="5">
															<div class="form-control-static">
																<span id="viewForm1_params_msg_form_urlParams" name="urlParams" ></span>
															</div>
														</td>

													</tr>
													<tr>
														<td colspan="3">
															<div class="form-control-static">
																<label >请求报文体(Request Body)格式</label>
																<pre style="height: 260px; overflow-y: scroll;"><code id="viewForm1_req_msg_form_json"></code></pre>
															</div>
														</td>
														<td colspan="3">
															<div class="form-control-static">
																<label >响应报文体(Response Body)格式</label>
																<pre style="height: 260px; overflow-y: scroll;"><code id="viewForm1_resp_msg_form_json"></code></pre>
															</div>
														</td>

													</tr>
													</tbody>
												</table>

											</div>
											<!-- temp="viewForm1_content" end -->

										</form>
										<div class="form-group">
											<div class="col-sm-12">
												<div class="box-footer text-center">
													<button class="btn btn-success pull-right" type="button"
															onclick="mytools.closeModal('my_modal_view');"> 关闭
													</button>
												</div>
											</div>
										</div>
									</div>


								</div>
								<!-- tab content e -->
							</div>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>
			<div win-title="测试窗口" class="modal fade" id="my_modal_testview" tabindex="-2" role="dialog"
				 aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog" style="width:90%;">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
								×
							</button>
							<h4 class="modal-title">
								<font color="red">测试窗口</font> 
							</h4>
						</div>
						<div class="modal-body viewForm">

							<div class="nav-tabs-custom">
								<ul class="nav nav-tabs" id="myTab-test">
								</ul>

								<!-- tab content start -->
								<div class="tab-content user-box mytab2">

									<div class="tab-pane active" id="tabTest_1">
										<form class="form-horizontal" role="form" id="testForm1" action="javascript:void(0)" enctype="multipart/form-data" method="post">
											<div style="display: none;">
												<input type="hidden" name="requestUrl" data-name="dxSysIntRelation.requestUrl">
												<input type="hidden" name="appId" data-name="dxSysIntRelation.toServerId">
											</div>
											<!-- temp="testForm1_content" start -->
											<div id="testForm1_content" class="row viewForm">


												<table class="table table-bordered bordercolor">
													<tbody>
													<tr>
														<td class="active w150" align="right"><label
																class="form-control-static">服务/接口使用单位：</label></td>
														<td class="w200">
															<div class="form-control-static">
                                                                <span id="testForm1_dxSysIntRelation_applyCompany"
																	  data-dict-cate="" data-dict-code="dymicSql"
																	  data-type-tag="select" data-page-name="dx-sys-reg"
																	  data-form-name="searchForm"
																	  data-obj-name="dxSysReg" data-condition=""
																	  data-name="dxSysIntRelation.applyCompany"
																	  data-colmun="{value:'userOwner',text:'userOwner'}"></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口使用系统：</label></td>
														<td class="w200">
															<div class="form-control-static">
                                                                <span id="testForm1_dxSysIntRelation_applySysEname"
																	  data-dict-cate="" data-dict-code="dymicSql"
																	  data-type-tag="select" data-page-name="dx-sys-reg"
																	  data-form-name="searchForm"
																	  data-obj-name="dxSysReg" data-condition=""
																	  data-name="dxSysIntRelation.applySysEname"
																	  data-colmun="{value:'sysEname',text:'sysCname'}"></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口所属系统：</label></td>
														<td class="w200">
															<div class="form-control-static">
                                                                <span id="testForm1_dxSysIntRelation_sysEname"
																	  data-dict-cate="" data-dict-code="dymicSql"
																	  data-type-tag="select" data-page-name="dx-sys-reg"
																	  data-form-name="searchForm"
																	  data-obj-name="dxSysReg" data-condition=""
																	  data-name="dxSysIntRelation.sysEname"
																	  data-colmun="{value:'sysEname',text:'sysCname'}"></span>
															</div>
														</td>
													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口编号：</label></td>
														<td>
															<div class="form-control-static"><span
																	data-name="dxSysIntRelation.fromInterfaceCode"
																	></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">服务/接口名称：</label></td>
														<td>
															<div class="form-control-static"><span
																	data-name="dxSysIntRelation.fromInterfaceName"
															></span>
															</div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">接口方向：</label></td>
														<td class="show_testForm1_dxInterfaceReg_view">
															<div class="form-control-static"><span
																	id="testForm1_dxInterfaceReg_exchangeMode"
																	data-dict-cate="dataEM"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.exchangeMode"
																	data-dict="dataEM"></span>
															</div>
														</td>

													</tr>
													<tr class="show_testForm1_dxInterfaceReg_view">
														<td class="active" align="right"><label
																class="form-control-static">接口协议：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="testForm1_dxInterfaceReg_interfaceProtocol"
																	data-dict-cate="dataExchangeProtocol" data-dict-code="dictItemList" data-dict="dataExchangeProtocol" data-type-tag="select"
																	data-name="dxInterfaceReg.interfaceProtocol" ></span></div>
															<input type="hidden" name="interfaceProtocol" data-name="dxInterfaceReg.interfaceProtocol">
														</td>
														<td class="active" align="right"><label
																class="form-control-static">请求报文格式类型：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="testForm1_dxInterfaceReg_reqMsgFormatType"
																	data-dict-cate="msgFormat"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.reqMsgFormatType"
																	data-dict="msgFormat"></span></div>
														</td>
														<td class="active" align="right"><label
																class="form-control-static">接口类型：</label></td>
														<td>
															<div class="form-control-static"><span
																	id="testForm1_dxInterfaceReg_interfaceType"
																	data-dict-cate="sysType"
																	data-dict-code="dictItemList" data-type-tag="select"
																	data-name="dxInterfaceReg.interfaceType"
																	data-dict="sysType"></span></div>
														</td>
													</tr>
													<tr>
														<td class="active" align="right"><label
																class="form-control-static">客户端接入信息：</label></td>
														<td colspan="5">
															<div class="form-control-static">
																<span class="">接入标识(AppId)：<span data-name="dxSysIntRelation.toServerId"></span></span>
																<span class="ml15">请求公钥(AppKey)：<span  data-name="dxSysIntRelation.toInterfaceCode"></span></span>
																<span class="ml15">其他秘钥：<span  data-name="dxSysIntRelation.requestPwd"></span></span>
															</div>
														</td>
													</tr>

													<tr>
														<td class="active" align="right"><label class="form-control-static">接口发布的请求地址：</label></td>
														<td colspan="5">
															<div class="form-control-static red">
																[ POST ] &nbsp; <span id="api_request_url" data-name="dxSysIntRelation.requestUrl"></span>
															</div>
														</td>
													</tr>
													<tr class="req_params_all">
														<td class="active" align="right"><label
																class="form-control-static">Param参数：</label></td>
														<td colspan="5">
															<div class="form-group">
																<input id="testForm1_params_msg_form_urlParams" type="text" name="urlParams" class="form-control clean " >
															</div>
														</td>
													</tr>
													<tr class="req_params_ftp hidden">
														<td class="active" align="right"><label class="form-control-static">FTP文件上传：</label></td>
														<td colspan="5" class="mytab2">
															<div class="col-xs-12">
																<input id="input_ftp_test_file" type="file" class="clean" name="upfile">
																<script>
																	$('#input_ftp_test_file').bind('change', function(e) {
																		var fileMsg = e.currentTarget.files;
																		var fileName = fileMsg[0].name;//名称
																		var fileSize = fileMsg[0].size;//大小 字节
																		var fileType = fileMsg[0].type;//类型
																		$('#input_ftp_test_file_fileName').val(fileName);
																		$('#input_ftp_test_file_inputFileName').val($(this).attr("name"));
																		console.log('file',fileName,fileSize,fileType);
																	});
																</script>
															</div>
															<div class="col-xs-6 hidden">
																fileName=<input id="input_ftp_test_file_fileName" type="text" class="clean"  name="fileName">
																inputFileName=<input id="input_ftp_test_file_inputFileName" type="text"  class="clean" value="upfile" name="inputFileName">
															</div>
														</td>
													</tr>
													<tr>
														<td colspan="3">
															<div class="form-group">
																<label >请求报文体(Request Body)：</label>
																<textarea  class="form-control" id="testForm_req" name="testMsg" style="height: 260px;width:100%;"></textarea>
															</div>
														</td>
														<td colspan="3">
															<div class="form-control-static">
																<label >响应报文体(Response Body)：</label>
																<pre style="height: 260px; overflow-y: scroll;"><code id="testForm1_resp_data"></code></pre>
															</div>
														</td>
													</tr>
													</tbody>
												</table>
											</div>
											<!-- temp="testForm1_content" end -->

										</form>
										<div class="form-group">
											<div class="col-sm-12">
												<div class="box-footer text-center">
													<button class="btn btn-success pull-left" type="button"
															onclick="mytools.closeModal('my_modal_testview');"> 关闭
													</button>
													<button class="btn btn-success pull-right" type="button"
															onclick="toSubmitTest('testForm1');"> 发起测试
													</button>
												</div>
											</div>
										</div>
									</div>


								</div>
								<!-- tab content e -->
							</div>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</div>

			<!-- Part 二、以下是template模板定义的模块区域 -->
			<script type="text/template" id="dataList-template">
				<? for ( var i = 0; i < rows.length; i++) {?>
				<tr>
					<td><?=(pageObj.currentPage-1)*10+(i+1)?></td>
					<!-- temp="dataList_template_content" start -->
					<td style='display:none;'><input type="hidden" name="input_primaryKey" obj-name="dxSysIntRelation"
													 primary="infoId"
													 value="<?=strUtil.doNull(rows[i].dxSysIntRelation.infoId,'')?>"/>
					</td>
<%--					<td><?=strUtil.doNull(rows[i].dxSysIntRelation.applyCompany,'')?></td>--%>
					<td><?=strUtil.doNull(dictListMap['syslist'][rows[i].dxSysIntRelation.applySysEname],'-')?></td>
					<td><?=strUtil.subStr(strUtil.doNull(rows[i].dxSysIntRelation.fromInterfaceCode,''),40)?></td>
					<td><?=strUtil.subStr(strUtil.doNull(rows[i].dxSysIntRelation.fromInterfaceName,''),25)?></td>
					<td><?=strUtil.doNull(dictListMap['syslist'][rows[i].dxSysIntRelation.sysEname],'-')?></td>
					<td><?=strUtil.subStr(rows[i].dxSysIntRelation.requestUrl,20)?></td>
					<td><?if(strUtil.doNull(rows[i].dxSysIntRelation.ifTest,'0')=='0'){?>未开启<?}else{?>已开启<?}?></td>
					<!-- temp="dataList_template_content" end -->
					<td>
						<button type="button" class="btn btn-success btn-xs" onclick="toLoad(this,'view')"><i
								class="fa fa-search-plus"></i> 查看
						</button>
						 
						<button type="button" class="btn btn-info btn-xs" onclick="toLoadDataTest('<?=rows[i].dxSysIntRelation.fromServerId?>','set_test')">
							<i class="fa fa-edit"></i> 挡板数据
						</button>
						 
						<?if(strUtil.doNull(rows[i].dxSysIntRelation.ifTest,'0')=='0'){?>
							<button type="button" class="btn btn-default btn-xs" onclick="openTest('<?=rows[i].dxSysIntRelation.fromServerId?>','1')">
								<i class="fa fa-edit"></i> 开启挡板
							</button>
						<?}else{?>
							<button type="button" class="btn btn-danger btn-xs" onclick="openTest('<?=rows[i].dxSysIntRelation.fromServerId?>','0')">
								<i class="fa fa-edit"></i> 关闭挡板
							</button>
						<?}?>
						 
						<button type="button" class="btn btn-primary btn-xs" onclick="toTest(this,'<?=rows[i].dxInterfaceReg.interfaceProtocol?>')"><i
								class="fa fa-edit"></i> 测试
						</button>
					</td>
				</tr>
				<?}?>
			</script>

			<!-- Part 三、 以下是js模块区域 -->
			<script>
				var clickMenu = "int-test-list";
				var myPage, dataListId, searchFormId;
				myPage = 10;//定义列表数据
				dataListId = "dataList";//显示列表数据div的id
				searchFormId = "searchForm";//搜索表单Id
				/**
				 * 初始化数据字典，id传入#id 返回值Map用法：dictListMap["userType"][rows[i].userType]
				 */
				var dictListMap = DictUtil.initDictAndDymic();
				$(function () {
					//1、加载分页列表数据
					getTableData();

					//2、控制是否启用token
					//setToken();

				});

				$(function () {
					//设置数据行选中效果
					$('#' + dataListId + ' tbody').on('click', 'tr', function (e) {
						if ($(this).hasClass('selected')) {
						} else {
							$('tr.selected').removeClass('selected');
							$(this).addClass('selected');
						}
						//var id = $('tr.selected th').eq(0).html();
					});
				});
				//注入日历框样式
				var dateObject = $('.datepicker').datepicker({
					language: 'zh-CN',
					//inline: true,
					todayBtn: "linked",
					format: "yyyy-mm-dd",
					autoclose: true
				}).on('hide', function (e) {
					//bootstrap datepicker与bootstrapValidator同时使用时选择日期后无法正常触发校验的解决方法
					//当日期选择框关闭时，执行刷新校验。
					var fieldName = $(this).attr("name");//获取当前元素name
					var formId = $(this).parents("form").eq(0).attr("id");//获取当前元素所在父层级中的就近的formId
					$("#" + formId).data('bootstrapValidator').updateStatus(fieldName, 'NOT_VALIDATED', null).validateField(fieldName);
				});

				//给模态窗口内form表单内的所有支持必填项的元素注入校验
				$(".modal").on('shown.bs.modal', function () {
					$(this).find("form").each(function () {
						var formId = $(this).attr("id");
						if (!strUtil.isNull(formId)) {
							formId = "#" + formId;
							setValidate(formId);//定义add表单验证属性
							mytools.cleanValidate(formId);//清空上次校验规则提示
						}
					});
				});

				//打开添加modal
				function toAdd() {
					mytools.cleanData(".addFormBody");//清空表单元素上次填写的内容；
					$(".datepicker").val("");
					$("#my_modal_add").modal("show");
				}

				//数据toLoad读取（查看、编辑）数据
				function toLoad(obj, type) {
					$.ajaxSettings.async = false;
					if ("view" == type) {
						$("#my_modal_view").modal("show");
					} else if("edit"){
						mytools.cleanData(".editFormBody");//清空表单元素上次填写的内容；
						$("#my_modal_edit").modal("show");
					}
					var paramLoadData = {};
					var inputPrimaryObj = $(obj).parent().parent().find("input[name='input_primaryKey']");
					paramLoadData["pageName"] = $("#searchForm").find("input[name='pageName']").val();
					paramLoadData["formName"] = $("#searchForm").find("input[name='formName']").val();
					if (inputPrimaryObj.length > 0) {
						for (var k = 0; k < inputPrimaryObj.length; k++) {
							var pkobj = $(inputPrimaryObj[k]);
							paramLoadData[pkobj.attr("obj-name") + ".w_" + pkobj.attr("primary")] = pkobj.val();
						}
						$.get(common_info_url, paramLoadData, function (myData) {
							console.log(myData,"mydata1");
							//反显加载数据
							if (myData) {
								for (var objNameKey in myData) {
									FormUtil.loadView(objNameKey, myData[objNameKey], "#my_modal_" + type);
								}
								//查询服务接口相关信息
								var infoId = myData["dxSysIntRelation"].fromServerId;
								paramLoadData={};
								paramLoadData["pageName"] = "dx-interface-reg";
								paramLoadData["formName"] = "searchForm";
								paramLoadData["dxInterfaceReg.w_infoId"] = infoId;
								// console.log(paramLoadData,"paramLoadData");
								$.get(common_info_url, paramLoadData, function (myData2) {
									//反显加载数据
									console.log(myData2,"mydata2");
									if (myData2) {
										for (var objNameKey in myData2) {
											FormUtil.loadView(objNameKey, myData2[objNameKey], ".show_viewForm1_dxInterfaceReg");
										}
										var interface_protocol = myData2["dxInterfaceReg"].interfaceProtocol;
										selectApiUrlAddr("#view_api_request_url",paramLoadData,interface_protocol);
										var reqMsgFormatType = myData2["dxInterfaceReg"].reqMsgFormatType;
										var respMsgFormatType = myData2["dxInterfaceReg"].respMsgFormatType;
										selectMsgFormat("viewForm1_req_msg_form_json",infoId,reqMsgFormatType,"req");
										selectMsgFormat("viewForm1_resp_msg_form_json",infoId,respMsgFormatType,"resp");
										selectMsgFormatParams("viewForm1_params_msg_form_urlParams",infoId,"params");
									}
								}, "json");
							}
						}, "json");
					}
				}

				//查询网关地址
				function selectApiUrlAddr(id,paramLoadData,interface_protocol) {
					$.get(ctx+"/api/reqUrl/gateway-server/", paramLoadData, function (myData3) {
						//反显加载数据
						if (myData3.flag=="T") {
							var urlstr = $(id).text();
							urlstr = apiReqUrl(urlstr,interface_protocol);
							$(id).html(myData3.msg+urlstr);
						}
					}, "json");
				}
				function apiReqUrl(requrl,protocol){
					var result;
					if(requrl.indexOf("/receive")>-1){
						requrl =requrl.replace("/receive", "");
					}
					if("ftp"==protocol.toLowerCase()){
						result ="receive/file"+requrl;
					}else{
						result ="receive"+requrl;
					}
					return result;
				}
				function toLoadDataTest(interfaceId, type) {
					mytools.cleanData(".editFormBody");//清空表单元素上次填写的内容；
					$("#my_modal_"+type).modal("show");
					var paramLoadData={};
					paramLoadData["pageName"] = "dx-interface-reg";
					paramLoadData["formName"] = "searchForm";
					paramLoadData["dxInterfaceReg.w_infoId"] = interfaceId;
					// console.log(paramLoadData,"paramLoadData");
					$.get(common_info_url, paramLoadData, function (myData) {
						//反显加载数据
						if (myData) {
							for (var objNameKey in myData) {
								FormUtil.loadView(objNameKey, myData[objNameKey], "#my_modal_" + type);
							}

						}
					}, "json");
				}
				function openTest(infoId,ifTest) {
					var msg="开启";
					if("0"==ifTest){
						msg="关闭";
					}
					var index_submit = layer.confirm("您确定要"+msg+"挡板吗？", {btn: ["Yes", "No"], closeBtn: 0, offset: "220px"}
							, function () {
								var paramData={};
								paramData["pageName"]="dx-interface-reg";
								paramData["formName"]="editForm";
								paramData["dxInterfaceReg.w_infoId"]=infoId;
								paramData["dxInterfaceReg.ifTest"]=ifTest;
								$.ajax({
									type: "post",
									url: common_submit_url,
									data: paramData, dataType: "json",
									success: function (myData) {
										var result = myData.flag;
										if (result == "T") {
											refresh();
											layer.close(index_submit);
										} else {
											layer.alert("删除失败！");
										}
									}
								});
							})
				}

				//删除调用
				function toDele(obj) {
					if (!$("#delForm_hidden").find("input[name='formName']").val()) {
						layer.alert("缺失删除参数！");
						return;
					}
					var index_submit = layer.confirm("您确定要删除信息吗？", {btn: ["Yes", "No"], closeBtn: 0, offset: "220px"}
							, function () {
								layer.close(index_submit);
								var paramData = {};
								var inputPrimaryObj = $(obj).parent().parent().find("input[name='input_primaryKey']");
								paramData["pageName"] = $("#delForm_hidden").find("input[name='pageName']").val();
								paramData["formName"] = $("#delForm_hidden").find("input[name='formName']").val();
								if (inputPrimaryObj.length > 0) {
									for (var k = 0; k < inputPrimaryObj.length; k++) {
										var pkobj = $(inputPrimaryObj[k]);
										paramData[pkobj.attr("obj-name") + ".w_" + pkobj.attr("primary")] = pkobj.val();
									}
									$.ajax({
										type: "post",
										url: common_submit_url,
										data: paramData, dataType: "json",
										success: function (myData) {
											var result = myData.flag;
											if (result == "T") {
												refresh();
											} else {
												layer.alert("删除失败！");
											}
										}
									});
								}
							});
				}

				function toTest(obj,interfaceProtocol) {
					$("#testForm1_resp_data").text("");
					$("#testForm_req").val("");
					$("#testForm1_params_msg_form_urlParams").val("");
					mytools.cleanData('#my_modal_testview');
					if('ftp'==interfaceProtocol){
						$('#my_modal_testview').find('.req_params_ftp').removeClass("hidden");
						$('#my_modal_testview').find('.req_params_all').addClass("hidden");
					}else{
						$('#my_modal_testview').find('.req_params_all').removeClass("hidden");
						$('#my_modal_testview').find('.req_params_ftp').addClass("hidden");
					}
					var paramLoadData = {};
					var inputPrimaryObj = $(obj).parent().parent().find("input[name='input_primaryKey']");
					paramLoadData["pageName"] = $("#searchForm").find("input[name='pageName']").val();
					paramLoadData["formName"] = $("#searchForm").find("input[name='formName']").val();
					if (inputPrimaryObj.length > 0) {
						for (var k = 0; k < inputPrimaryObj.length; k++) {
							var pkobj = $(inputPrimaryObj[k]);
							paramLoadData[pkobj.attr("obj-name") + ".w_" + pkobj.attr("primary")] = pkobj.val();
						}
						$.get(common_info_url, paramLoadData, function (myData) {
							//反显加载数据
							if (myData) {
								for (var objNameKey in myData) {
									FormUtil.loadView(objNameKey, myData[objNameKey], "#my_modal_testview");
								}
								//查询服务接口相关信息
								var infoId = myData["dxSysIntRelation"].fromServerId;
								paramLoadData={};
								paramLoadData["pageName"] = "dx-interface-reg";
								paramLoadData["formName"] = "searchForm";
								paramLoadData["dxInterfaceReg.w_infoId"] = infoId;
								// console.log(paramLoadData,"paramLoadData");
								$.get(common_info_url, paramLoadData, function (myData2) {
									//反显加载数据
									if (myData2) {
										for (var objNameKey in myData2) {
											FormUtil.loadView(objNameKey, myData2[objNameKey], ".show_testForm1_dxInterfaceReg_view");
										}
										var interface_protocol = myData2["dxInterfaceReg"].interfaceProtocol;
										selectApiUrlAddr("#api_request_url",paramLoadData,interface_protocol);

										// console.log(myData2["dxInterfaceReg"],"fpc");
										var reqMsgFormatType = myData2["dxInterfaceReg"].reqMsgFormatType;
										// var respMsgFormatType = myData2["dxInterfaceReg"].respMsgFormatType;
										selectMsgFormat("testForm_req",infoId,reqMsgFormatType,"req");
										selectMsgFormatParams("testForm1_params_msg_form_urlParams",infoId,"params");

									}
								}, "json");
							}
						}, "json");
					}
					$("#my_modal_testview").modal("show");
				}
				//加载列表数据
				function getTableData() {
					if (strUtil.isNull($("#" + searchFormId).find("input[name='pageName']").val())) {
						return;
					}
					var index_load = layer.load(1, {shade: false});
					$.ajax({
						type: 'get',
						url: common_list_url,
						data: $("#" + searchFormId).serialize() + getCurrentPage(common_list_url + "?" + $("#" + searchFormId).serialize(), myPage),
						dataType: 'json',
						success: function (myData) {
							console.log(myData);
							$("#dataListTotalCount").text(myData.total);
							if ("T" == myData.flag) {
								var htmlData = baidu.template(dataListId + "-template", eval(myData));
								$("#" + dataListId + "-body").html(htmlData);
								var option = {
									ele: $("#" + dataListId + "-page")[0],
									total: myData.total,
									fn: getTableData,
									url: common_list_url + "?" + $("#" + searchFormId).serialize()
								}
								generatePages(option);

							}
							layer.close(index_load);
						}
					});
				}


				//提交tab1表单数据
				function submitForm1(formId, tabId) {
					//校验规则-表单提交时触发
					var validate = $('#' + formId).data('bootstrapValidator').validate();
					if (!validate.isValid()) { //如果校验不通过就返回
						return;
					}

					var index_submit = layer.confirm('您确定要保存信息吗？', {btn: ['Yes', 'No'], closeBtn: 0, offset: '220px'}
							, function () {
								var result = submitForm(formId, tabId);
								if (result) {
									layer.alert("提交成功！", {closeBtn: 0});
									mytools.closeModal("my_modal_add");
									mytools.closeModal("my_modal_edit");
									mytools.closeModal("my_modal_set_test");
									refresh();
									setToken();
									if (!strUtil.isNull(tabId)) {
										$('.nav-tabs a[href=\"#' + tabId + '\"]').tab('show'); // Select tab by name
									}
								}
							});

				}

				//提交表单数据
				function submitForm(formId, tabId) {
					var result;
					var index_load = layer.load(1, {shade: false});
					$.ajax({
						type: 'post',
						url: common_submit_url,
						data: $("#" + formId).serialize(),
						async: false,
						dataType: 'json',
						success: function (myData) {
							console.log(myData);
							if (myData.flag == "T") {
								result = myData;
							} else {
								setToken();
								layer.alert(myData.msg);
							}
							layer.close(index_load);
						},
						error: function (e) {
							layer.close(index_load);
						}
					});
					return result;
				}


				function selectMsgFormat(codeId,interfaceId,msgFormatType,msgType) {
					$("#"+codeId).html("");
					var paramLoadData={};
					paramLoadData["pageName"] = "dx-msg-format-set-search";
					paramLoadData["formName"] = "searchForm";
					paramLoadData["interfaceId"] = interfaceId;
					paramLoadData["msgFormatType"] = msgFormatType;
					paramLoadData["msgType"] = msgType;
					$.get(common_info_url, paramLoadData, function (myData) {
						console.log(myData,"myData-selectMsgFormat");
						if(myData.result=="T"){
							if("json"==msgFormatType){
								mytools.showViewByJson(myData.entity,codeId);
							}else{
								mytools.showXmlFormat(codeId,myData.entity);
							}
						}else{
							$("#"+codeId).html("暂未配置报文格式。");
						}
					}, "json");
				}
				function selectMsgFormatParams(codeId,interfaceId,msgType) {
					// console.log(codeId+"<---->"+interfaceId+"<---->"+msgFormatType+"<---->"+msgType);
					// var interfaceId=$("#"+formId).find("span[name='interfaceId']").text();
					$("#"+codeId).text("");
					var paramLoadData={};
					paramLoadData["pageName"] = "dx-msg-format-set";
					paramLoadData["formName"] = "searchForm";
					paramLoadData["dxMsgFormatSet.w_interfaceId"] = interfaceId;
					paramLoadData["dxMsgFormatSet.w_msgType"] = msgType;
					$.get(common_list_url, paramLoadData, function (myData) {
						console.log(myData,"myData-param");
						if(myData.flag=="T"){
							if(myData.total>0){
								var paramsStr="";
								for (var i=0;i<myData.total;i++){
									var paramEname=myData.rows[i].paramEname;
									var defValue=strUtil.doNull(myData.rows[i].defValue,"");
									paramsStr += "&"+paramEname+"="+defValue;
								}
								paramsStr = paramsStr.substr(1,paramsStr.length);
								if(codeId.indexOf("view")>-1){
									$("#"+codeId).html(paramsStr);
								}else{
									$("#"+codeId).val(paramsStr);
								}
								console.log(paramsStr,"paramsStr");
							}
						}else{
							$("#"+codeId).html("暂未Param参数。");
						}
					}, "json");
				}

				function HTMLEncode(html) {
					var temp = document.createElement("div");
					// console.dir(temp);
					(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
					var output = temp.innerHTML;
					temp = null;
					return output;
				}

				function toSubmitTest(formId) {
					$("#testForm1_resp_data").text("");
					var index_load=layer.msg("请求进行中...",{time: -1 });
					var formObj= $('#'+formId);
					var formData = {};
					var processDataFlag = true;
					var contentTypeFlag = "application/x-www-form-urlencoded";
					var interfaceProtocolVal = formObj.find("input[name='interfaceProtocol']").val();
					console.log('interfaceProtocolVal',formId,interfaceProtocolVal);
					if('ftp'==interfaceProtocolVal){
						formData = new FormData(document.getElementById(formId));
						processDataFlag = false; // 告诉jQuery不要去处理发送的数据
						contentTypeFlag = false;// 告诉jQuery不要去设置Content-Type请求头
					}else{
						formData = formObj.serialize();
					}
					$.ajax({
						type: 'post',
						url: ctx+'/api/toTest',
						data:formData,
						dataType: 'json',
						processData : processDataFlag,
						contentType : contentTypeFlag,
						success: function (myData) {
							layer.close(index_load);
							console.log(myData,"myData");
							if("200"==myData.errorCode){
								mytools.showJsonViewer(myData,"testForm1_resp_data");
								layer.msg("测试完成");
							} else {
								layer.msg("测试失败："+strUtil.doNull(myData.errorMessage,myData.msg));
							}
						}
					});
				}

				//刷新
				function refresh() {
					getTableData();
				}

				//设置token
				function setToken() {
					$.ajax({
						type: 'get',
						url: '${ctx}/sendPage/token?token=true',
						dataType: 'text',
						success: function (myData) {
							console.log(myData);
							$('.formToken').val(myData);
						}
					});
				}


				/**** Part 四、以下是自定义新增方法  ****/
//1.定义校验规则-定义
				function setValidate(id) {
					$(id).each(function () {
						$(this).bootstrapValidator({
							feedbackIcons: {
								valid: 'glyphicon glyphicon-ok',
								invalid: 'glyphicon glyphicon-remove',
								validating: 'glyphicon glyphicon-refresh'
							}, /** 以下需要结合实际业务清空补充个表单元素的验证规则 **/
							fields: {
								/** 可自定义新增验证规则
								 "uctUser.userEname":{
		    		 validators: {
		    			 regexp: {
		    				 regexp: /^[0-9]+$/,
		                      message: '只能是数字'
		                  }
		              }
		    	}
								 **/
							}
						});
					});
				}


			</script>
		</section>
		<!-- Main end -->
	</div>
	<!-- foot start -->
	<%@include file="/common/dxp/foot.jsp" %>
	<!-- foot start -->
</div>
<!-- /.content-wrapper -->
</body>
</html>















